package com.mvc.tx;


import com.mvc.annotion.Component;

import java.sql.SQLException;

/**
 * @ Author xsd
 * @ crate time 2020/6/5 17:02
 * @ 描述  事务管理器-
 */
@Component
public class TransactionManagerImpl implements TransactionManager {

    @Override
    public void beginTransaction() throws SQLException {
        System.out.println("begin");
    }

    @Override
    public void commit() throws SQLException {
        System.out.println("commit");
    }

    @Override
    public void rollback() throws SQLException {
        System.out.println("rollback");
    }
}
